<?php
require '../vendor/autoload.php';

use \ESTool\Elasticsearch;

$where = array(
    'cdate'=>20180722,
    'status,neq' => 0,
    "reserve_end_time,lte" => date("Y-m-d"),
    "create_time,gte" => "2016-08-13",
);
$result = Elasticsearch::getInstanceNew()
->setIndexMapping("es_index_php")
->setWhere($where)
->setSource(array("_score","tags","soft_name","category_name","single_word","gameid","create_time"))
->setSize(5)
->setFrom(0)
->query()
->fetchTableSource();
p($result);

p(get_client_ip());
p(\PHPTool\util\Time::getLastWeekUnixTimes());
$h = new \PHPTool\Hello();
$h->say_hello();